import request from '@/utils/request';



// 查询
export function queryData(id) {
    return request({
      url: `/iot/program/` + id,
      method: "get"
    });
  }

// 新增
export function addData(data) {
  return request({
    url: `/iot/program`,
    method: "post",
    data: data,
  });
}


// 修改
export function updateData(data) {
  return request({
    url: `/iot/program`,
    method: "put",
    data: data,
  });
}